import axios from './config';

export const getDistrictId = (params: { url: string }) => {
  // axios得到结果 Promise
  return axios.get('/api/Data/GetDistrictId', { params });
};

export const getPositions = (params: { parentID: number; withCache: boolean; districtId: number; from: number }) => {
  return axios.get('/api/Data/Position', { params });
};
